package com.platform.api.bzproject.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 积分表
 * </p>
 *
 * @author guoshao
 * @since 2021-11-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_bz_integral_record")
public class BzIntegralRecord extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户openid
     */
    private String openid;

    /**
     * 来源用户openid
     */
    private String sourceOpenid;

    /**
     * 积分
     */
    private Integer integral;

    /**
     * 积分类型：0看广告 1用户分享新增积分(用户助力) 2下载减少积分
     */
    private Integer type;

    /**
     * 描述
     */
    private String remark;

    /**
     * 积分类型名
     */
    private String name;

    /**
     * 收入或者消费：1收入；2消费
     */
    private Integer consumptionIncome;

    /**
     * 创建时间
     */
    private Date createTime;


}
